/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niedziela12.pai.ejb.user.facades;

import com.niedziela12.pai.ejb.entities.Role;
import com.niedziela12.pai.ejb.entities.User;
import com.niedziela12.pai.ejb.entities.UserRoles;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Kamil
 */
@Local
public interface UserFacadeLocal {

    void create(User user);

    User edit(User user);

    void remove(User user);

    User find(Object id);

    List<User> findAll();

    List<User> findRange(int[] range);

    int count();
    
    User findUserByLogin(String login);

    public List<UserRoles> getUsersRoles(User user);

    public void editRoles(List<UserRoles> roles);
    
    public List<Role> findRolesDef();
    
}
